package com.company.test19;

import sun.text.normalizer.UTF16;

import java.io.*;
import java.util.Scanner;

/**
 * Created by Administrator on 2016.9.23.
 */
public class Test1904 {
    public static void main(String[] args)throws IOException {
        File filetxt=new File("src/com/company/test19/Exercise1904.txt");
        File filedat=new File("src/com/company/test19/Exercise1904.dat");
        if(!filedat.exists()){
            filedat.createNewFile();
        }

        Scanner input=new Scanner(filetxt);
        FileOutputStream output=new FileOutputStream(filedat);

        while (input.hasNext()){
            output.write(input.nextLine().getBytes());
        }

        output.close();input.close();
    }
}